package com.group2.bankonline.mapper;

import com.group2.bankonline.pojo.Mobile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author syf
 * @since 2024-07-11
 */
public interface MobileMapper extends BaseMapper<Mobile> {
     Mobile selectByTel(String tel);
     @Select("""
             select id from mobile where telephone = #{telephone};
             """)
    public int selectIdByTel(String tel);
}
